#include<gameover.h>

overBoard::overBoard()
{
    image.load(":/new/prefix1/flappybird/text_game_over.png");
    rect=image.rect();
    rect.setY(300);
}

void overBoard::move()
{
    if(rect.x()>300)
        return;
    int x=rect.x()+10;
    int y=rect.y();
    rect.moveTo(x,y);
}

QRect overBoard::getRect()
{
    return  rect;
}

QImage overBoard::getImage()
{
    return image;
}

